AZ-204 Quiz

← Back to Topics

Cosmos DB (1 / 62):

You are developing a system that needs to interact with Azure Cosmos DB. Your task is to write a piece of code that connects to a specific Cosmos DB instance and retrieves sales orders for a given account number, with a maximum item count of 1.

var connectionString = "<connection-string>";
var dbName = "<database>";
var containerName = "<container>";
var partitionKey = "Accounts";
var throughputValue = 400;
var accountNumber = "190823";

// Code here


Exam revision: April 11, 2025